import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// import App from './App';
// import Life from './pages/demo/Life';
import Admin from './admin'
import Home from './pages/router_demo/router1/Home'
import Test from './pages/router_demo/router3/router'
import Router from './router'
import {Provider} from 'react-redux'
import configStore from './redux/store/configStore'
import * as serviceWorker from './serviceWorker';
const store = configStore()

// ReactDOM.render(<Router />, document.getElementById('root'));
ReactDOM.render(<Provider store={store}>
    <Router />
</Provider>, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
